<template>
	<view>

		<view class="item" style="padding: 10upx;margin-bottom: 140upx;">
			<rich-text :nodes="html"></rich-text>
		</view>
		
		<view class="bottom-btn bottom">
			<text @click="btnClick">立即申请加盟</text>
		</view>


	</view>
</template>

<script>
	import {
		cooperationandalliance
	} from '../../../common/api.js';

	export default {
		data() {
			return {
				id:'',
				html: '',
			}
		},
		methods: {

			getData() {
				cooperationandalliance().then(res => {
					this.id = res.id;
					this.html = res.internalJump;
				})

			},
		

			btnClick() {
				uni.navigateTo({
					url:'./applyjoin?id='+this.id
				})
			},


		},

		onLoad() {
			this.getData();
		}
	}
</script>

<style lang="scss" scoped>
	
	.bottom {
		width: 100%;
		position: fixed;
		bottom: 0;
		z-index: 2;
	}
</style>
